#coding:utf-8
'''
一个用于测试的module,获得测试的widget在里面添加一个QLabel
'''
from PySide6.QtWidgets import QLabel, QVBoxLayout
from ModuleManager import BaseModule
class TestModule(BaseModule):
    Name = 'TestModule'

    def load(self):
        super().load()
        self.testWidget = self.panel.getTestWidget()
        self.testLabel = QLabel('Test Label Add By Test Module')
        layout = QVBoxLayout()
        layout.addWidget(self.testLabel)
        self.testWidget.setLayout(layout)

    def remove(self):
        super().remove()
        self.testLabel.hide()
        
